<?php
// $Id: xoops_version.php,v 1.34 2004/09/01 17:48:07 hthouzard Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
$nameOfRegionalDB = 'Southeast';

$modversion['name'] = "Local News";
$modversion['version'] = 1.0;
$modversion['description'] = "A news module for use with public radio stations web sites";
$modversion['credits'] = "David W. Pichard, II";
$modversion['author'] = "http://www.PichardDesign.com";
//$modversion['help'] = "news.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/local_news.png";
$modversion['dirname'] = "local_news";

$modversion['sqlfile']['mysql'] = "sql/mysql.sql";

// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "local_news_stories";

// Smarty
$modversion['use_smarty'] = 1;

// Templates

// Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";

// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "local_news_search";

// Menu
$modversion['hasMain'] = 1;

// Blocks
$modversion['blocks'][1]['file'] = "side_block_local.php";
$modversion['blocks'][1]['name'] = "News: Side Block Local";
$modversion['blocks'][1]['description'] = "Side Block Local.";
$modversion['blocks'][1]['show_func'] = "side_block_local_show";
$modversion['blocks'][1]['template'] = "side_block_local.html";

$modversion['blocks'][2]['file'] = "side_block_regional.php";
$modversion['blocks'][2]['name'] = "News: Side Block Regional";
$modversion['blocks'][2]['description'] = "Side Block Regional.";
$modversion['blocks'][2]['show_func'] = "side_block_regional_show";
$modversion['blocks'][2]['template'] = "side_block_regional.html";

$modversion['blocks'][3]['file'] = "center_block_local.php";
$modversion['blocks'][3]['name'] = "News: Center Block Local";
$modversion['blocks'][3]['description'] = "Center Block Local";
$modversion['blocks'][3]['show_func'] = "center_block_local_show";
$modversion['blocks'][3]['template'] = "center_block_local.html";

$modversion['blocks'][4]['file'] = "center_block_regional.php";
$modversion['blocks'][4]['name'] = "News: Center Block Regional";
$modversion['blocks'][4]['description'] = "Center Block Regional";
$modversion['blocks'][4]['show_func'] = "center_block_regional_show";
$modversion['blocks'][4]['template'] = "center_block_regional.html";

$modversion['blocks'][5]['file'] = "news_tools.php";
$modversion['blocks'][5]['name'] = "News Tools";
$modversion['blocks'][5]['description'] = "Info and tools to help with the news block";
$modversion['blocks'][5]['show_func'] = "news_tools_show";
$modversion['blocks'][5]['template'] = "news_tools.html";



//NOTIFICATIONS
/* $modversion['hasNotification'] = 1;
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
$modversion['notification']['lookup_func'] = 'newbb_notify_iteminfo';
$modversion['notification']['category'][1]['name'] = 'thread';
$modversion['notification']['category'][1]['title'] = _MI_NEWBB_THREAD_NOTIFY;
$modversion['notification']['category'][1]['description'] = _MI_NEWBB_THREAD_NOTIFYDSC;
$modversion['notification']['category'][1]['subscribe_from'] = 'viewtopic.php';
$modversion['notification']['category'][1]['item_name'] = 'topic_id';
$modversion['notification']['category'][1]['allow_bookmark'] = 1;
$modversion['notification']['event'][1]['name'] = 'new_post';
$modversion['notification']['event'][1]['category'] = 'thread';
$modversion['notification']['event'][1]['title'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFY;
$modversion['notification']['event'][1]['caption'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFYCAP;
$modversion['notification']['event'][1]['description'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFYDSC;
$modversion['notification']['event'][1]['mail_template'] = 'thread_newpost_notify';
$modversion['notification']['event'][1]['mail_subject'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFYSBJ; */




//DHTML MENU ITEMS IN ADMIN PAGE
//***** Modify hard link to this module directory in /admin/menu.php
//Update "case" variables in /admin/index.php
$adminmenu[0]['title'] = "Post Local News";
$adminmenu[0]['link'] = "admin/index.php?op=post&currentID=0";
$adminmenu[1]['title'] = "Manage Local News";
$adminmenu[1]['link'] = "admin/index.php?op=manageLocal&currentID=1";
$adminmenu[2]['title'] = "Post $nameOfRegionalDB Only News";
$adminmenu[2]['link'] = "admin/index.php?op=postRegional&currentID=2";
$adminmenu[3]['title'] = "Manage $nameOfRegionalDB Only News";
$adminmenu[3]['link'] = "admin/index.php?op=manageRegional&currentID=3";

//##############################################################
//ITEMS USED IN THE MODULE PREFERENCES SECTIONS - must have corresponding info in /language/modinfo.php
//##############################################################

 
/**
* Select the number of news items to display on top page - update module in admin to see changes
*/

$modversion['config'][1]['name'] = 'enableSyndication';
$modversion['config'][1]['title'] = '_enableSyndication_Title';
$modversion['config'][1]['description'] = '_enableSyndication_DESC';
$modversion['config'][1]['formtype'] = 'yesno';
$modversion['config'][1]['valuetype'] = 'int';
$modversion['config'][1]['default'] = 0;

$modversion['config'][2]['name'] = 'stationLetters';
$modversion['config'][2]['title'] = '_stationLetters_Title';
$modversion['config'][2]['description'] = '_stationLetters_DESC';
$modversion['config'][2]['formtype'] = 'textbox';
$modversion['config'][2]['valuetype'] = 'text';
$modversion['config'][2]['default'] = '';

$modversion['config'][3]['name'] = 'syndicationDB_Host';
$modversion['config'][3]['title'] = '_syndicationDB_Host_Title';
$modversion['config'][3]['description'] = '_syndicationDB_Host_DESC';
$modversion['config'][3]['formtype'] = 'textbox';
$modversion['config'][3]['valuetype'] = 'text';
$modversion['config'][3]['default'] = 'localhost';

$modversion['config'][4]['name'] = 'syndicationDB';
$modversion['config'][4]['title'] = '_syndicationDB_Title';
$modversion['config'][4]['description'] = '_syndicationDB_DESC';
$modversion['config'][4]['formtype'] = 'textbox';
$modversion['config'][4]['valuetype'] = 'text';
$modversion['config'][4]['default'] = '';

$modversion['config'][5]['name'] = 'syndicationDB_User';
$modversion['config'][5]['title'] = '_syndicationDB_User_Title';
$modversion['config'][5]['description'] = '_syndicationDB_User_DESC';
$modversion['config'][5]['formtype'] = 'textbox';
$modversion['config'][5]['valuetype'] = 'text';
$modversion['config'][5]['default'] = '';

$modversion['config'][6]['name'] = 'syndicationDB_Passaword';
$modversion['config'][6]['title'] = '_syndicationDB_Passaword_Title';
$modversion['config'][6]['description'] = '_syndicationDB_Passaword_DESC';
$modversion['config'][6]['formtype'] = 'password';
$modversion['config'][6]['valuetype'] = 'text';
$modversion['config'][6]['default'] = '';


//NUMBER IF ITEMS IN SIDEBLOCK - LOCAL
$modversion['config'][7]['name'] = 'NISL';
$modversion['config'][7]['title'] = '_NISL_Title';
$modversion['config'][7]['description'] = '_NISL_DESC';
$modversion['config'][7]['formtype'] = 'textbox';
$modversion['config'][7]['valuetype'] = 'text';
$modversion['config'][7]['default'] = '5';

//NUMBER IF ITEMS IN SIDEBLOCK - REGIONAL 
$modversion['config'][8]['name'] = 'NISR';
$modversion['config'][8]['title'] = '_NISR_Title';
$modversion['config'][8]['description'] = '_NISR_DESC';
$modversion['config'][8]['formtype'] = 'textbox';
$modversion['config'][8]['valuetype'] = 'text';
$modversion['config'][8]['default'] = '5';

//NUMBER IF ITEMS IN CENTERBLOCK - LOCAL
$modversion['config'][9]['name'] = 'NICL';
$modversion['config'][9]['title'] = '_NICL_Title';
$modversion['config'][9]['description'] = '_NICL_DESC';
$modversion['config'][9]['formtype'] = 'textbox';
$modversion['config'][9]['valuetype'] = 'text';
$modversion['config'][9]['default'] = '5';

//NUMBER IF ITEMS IN CENTERBLOCK - REGIONAL
$modversion['config'][10]['name'] = 'NICR';
$modversion['config'][10]['title'] = '_NICR_Title';
$modversion['config'][10]['description'] = '_NICR_DESC';
$modversion['config'][10]['formtype'] = 'textbox';
$modversion['config'][10]['valuetype'] = 'text';
$modversion['config'][10]['default'] = '5';

$modversion['config'][11]['name'] = 'centerblock_showImages';
$modversion['config'][11]['title'] = '_centerblock_showImages_Title';
$modversion['config'][11]['description'] = '_centerblock_showImages_DESC';
$modversion['config'][11]['formtype'] = 'yesno';
$modversion['config'][11]['valuetype'] = 'int';
$modversion['config'][11]['default'] = 0;

$modversion['config'][12]['name'] = 'centerblock_LinkIsImage';
$modversion['config'][12]['title'] = '_CLII_Title';
$modversion['config'][12]['description'] = '_CLII_DESC';
$modversion['config'][12]['formtype'] = 'yesno';
$modversion['config'][12]['valuetype'] = 'int';
$modversion['config'][12]['default'] = 0;

$modversion['config'][13]['name'] = 'centerblock_ShowCopyright';
$modversion['config'][13]['title'] = '_CSCR_Title';
$modversion['config'][13]['description'] = '_CSCR_DESC';
$modversion['config'][13]['formtype'] = 'yesno';
$modversion['config'][13]['valuetype'] = 'int';
$modversion['config'][13]['default'] = 0;

$modversion['config'][14]['name'] = 'numOfStories2Show';
$modversion['config'][14]['title'] = '_N2SH_Title';
$modversion['config'][14]['description'] = '_N2SH_DESC';
$modversion['config'][14]['formtype'] = 'textbox';
$modversion['config'][14]['valuetype'] = 'text';
$modversion['config'][14]['default'] = '100';

$modversion['config'][15]['name'] = 'numOfResultsPerPage';
$modversion['config'][15]['title'] = '_NRPP_Title';
$modversion['config'][15]['description'] = '_NRPP_DESC';
$modversion['config'][15]['formtype'] = 'textbox';
$modversion['config'][15]['valuetype'] = 'text';
$modversion['config'][15]['default'] = '10';
?>
